package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 数据库模型
 * 
 * @author ultrafrog
 * @version 1.0, 2015-03-30
 * @since 1.0
 */
@Entity
@Table(name = "dbc_database")
public class Database extends Model {

	/** 名称 */
	@Column(name = "vc_name")
	public String name;
	
	/** 字符集 */
	@Column(name = "vc_charset")
	public String charset;
	
	/** 构造函数 */
	public Database() {
		this.charset = "utf-8";
	}
	
	/**
	 * 构造函数 
	 * 
	 * @param name
	 */
	public Database(String name) {
		this();
		this.name = name;
	}
}
